﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace XRpgLibrary.ConversationClasses
{
    class ConversationGroup
    {
        public int ConversationGroupID { get; set; }

        private Dictionary<int, Conversation> conversations;
        public Dictionary<int, Conversation> Conversations
        {
            get
            {
                if (conversations == null)
                    conversations = new Dictionary<int, Conversation>();

                return conversations;
            }
            set
            {
                conversations = value;
            }
        }

        private int GetNextConversationID()
        {
            int max = -1;
            foreach (int id in Conversations.Keys)
            {
                max = Math.Max(max, id);
            }

            return max + 1;
        }
    }
}
